﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="FileSerach.aspx.cs" Inherits="FileManager_FileSerach" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/ScheduleManagerCss.css" />
    <style type="text/css">
        .txt
        {
            width: 100px;
            border: 1px solid #66ccfd;
        }
        .serach ul li
        {
            text-align: left;
            line-height: 25px;
        }
    </style>
    <script type="text/javascript">
        function display() {
            var div = document.getElementById("date");
            if (div.style.display == "") {
                div.style.display == "none";
            }
            if (div.style.display == "none") {
                div.style.display = "";
            }
        }
        window.onload = function () {
            var right = document.getElementById("rightS");
            right.style.display = "none";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 864px; font-size: 12px; height: auto;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            回收站</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr style="margin-bottom: 8px" />
        <div>
            <div style="float: left; width: 250px;">
                <div style="border: 1px solid #66ccfd; text-align: left; width: 195px; margin-top: 5px;
                    margin-left: 50px; line-height: 30px; float: left; padding-left: 5px;">
                    <div style="text-align: left;">
                        <ul style="margin: 0;">
                            <li>文件搜索</li>
                            <li>要搜索的文件名：</li>
                            <li>
                                <asp:TextBox ID="txtFileName" runat="server"></asp:TextBox></li>
                            <li>附件包含的文字：</li>
                            <li>
                                <asp:TextBox ID="txtAccName" runat="server"></asp:TextBox></li>
                            <li>创建者姓名：</li>
                            <li>
                                <asp:TextBox ID="txtCreateName" runat="server"></asp:TextBox></li>
                            <li>
                                <asp:Button ID="btnSerach" CssClass="btnBranch" runat="server" Text="立即搜索" /></li>
                        </ul>
                    </div>
                    <div>
                        <asp:LinkButton ID="lbtnSou" runat="server" Text="搜索选项>>" OnClick="lbtnSou_Click"></asp:LinkButton></div>
                </div>
                <div id="date" style="width: 200px; border: 1px solid #ccc; text-align: left; margin-top: 0;
                    margin-left: 50px;">
                    <table>
                        <tr>
                            <td>
                                介于：<asp:TextBox ID="txtBegin" CssClass="txt" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ---------<asp:TextBox ID="txtEnd" CssClass="txt" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:RadioButton ID="rbDay" runat="server" Text="本日" GroupName="time" /><asp:RadioButton
                                    ID="rbWeek" runat="server" Text="本周" GroupName="time" /><asp:RadioButton ID="rbMonth"
                                        Text="本月" GroupName="time" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="rightS" style="float: right; padding: 10px 10px; width: 594px;">
                <div class="serach">
                    <ul>
                        <li>文件名：<asp:Label ID="lbFileName" runat="server" Text="Label"></asp:Label></li>
                        <li>文件路径：<asp:Label ID="lbPath" runat="server" Text="Label"></asp:Label>
                        </li>
                        <li>备注：<asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="55px"
                            Width="219px"></asp:TextBox></li>
                        <li>创建时间：<asp:Label ID="lbCreateDate" runat="server" Text="Label"></asp:Label>所有者：<asp:Label
                            ID="lbOwner" runat="server" Text="Label"></asp:Label></li>
                    </ul>
                </div>
                <div>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="77px"
                        Width="594px">
                        <Columns>
                            <asp:BoundField DataField="FileName" HeaderText="文件名称" />
                            <asp:BoundField DataField="FilePath" HeaderText="所在文件夹" />
                            <asp:TemplateField HeaderText="类型">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FileType.FileTypeName") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("FileType.FileTypeName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="FileOwner" HeaderText="所有者" />
                            <asp:BoundField DataField="CreateDate" HeaderText="创建日期" />
                        </Columns>
                        <HeaderStyle BackColor="#66CCFD" ForeColor="White" />
                        <RowStyle BackColor="#DFDFDF" />
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
